# python函数
语法
import os 

username = 'root'
ip = '192.168.1.1'
cmd = 'df'

def runCmd(uname, host, command=''):
	print command
	CMD = "ssh %s@%s  %s" %(uname, host, command)
	os.system(CMD)
	print '\033[32;1m Exit from %s,bye!\033[0m' %host
runCmd(username, ip, cmd)
	
	